package com.app.common.dataDictionary.PO;

import java.util.*;
import com.css.sword.kernel.base.annotation.*;
import com.css.sword.kernel.base.dataElement.*;
import com.css.sword.kernel.base.exception.SwordBaseCheckedException;

import com.app.common.dataDictionary.DE.DE_C_BRAND_ID;
import com.app.common.dataDictionary.DE.DE_CATEGORY_ID;
import com.app.common.dataDictionary.DE.DE_WEBUSERNAME;
import com.app.common.dataDictionary.DE.DE_C_BRAND_TITLE;
import com.app.common.dataDictionary.DE.DE_C_BRAND_FBT;
import com.app.common.dataDictionary.DE.DE_C_BRAND_CLICKNUMBER;
import com.app.common.dataDictionary.DE.DE_C_BRAND_TOTALWEALTH;
import com.app.common.dataDictionary.DE.DE_C_BRAND_WEALTH;
import com.app.common.dataDictionary.DE.DE_C_BRAND_WEALTH_SJXZ;
import com.app.common.dataDictionary.DE.DE_C_BRAND_WEALTH_GQSJ;
import com.app.common.dataDictionary.DE.DE_C_BRAND_SFNEW;
import com.app.common.dataDictionary.DE.DE_C_BRAND_NEWNUM;
import com.app.common.dataDictionary.DE.DE_C_BRAND_SFTOP;
import com.app.common.dataDictionary.DE.DE_C_BRAND_OPPTIME;
import com.app.common.dataDictionary.DE.DE_C_BRAND_EXTTIME;
import com.app.common.dataDictionary.DE.DE_WEBSHZT;
import com.app.common.dataDictionary.DE.DE_WEBSHSJ;
import com.app.common.dataDictionary.DE.DE_APP_ANDROID_XZCS;
import com.app.common.dataDictionary.DE.DE_APP_IOS_XZCS;
import com.app.common.dataDictionary.DE.DE_INVOICE_CATEGORY;
import com.app.common.dataDictionary.DE.DE_INVOICE_TAITOULX;
import com.app.common.dataDictionary.DE.DE_INVOICE_TAITOU;
import com.app.common.dataDictionary.DE.DE_INVOICE_CONTENT;
import com.app.common.dataDictionary.DE.DE_INVOICE_SPRXM;
import com.app.common.dataDictionary.DE.DE_INVOICE_SPRLXDH;
import com.app.common.dataDictionary.DE.DE_INVOICE_SPRDZ;
import com.app.common.dataDictionary.DE.DE_INVOICE_SPREMAIL;
import com.app.common.dataDictionary.DE.DE_C_BRAND_XTBPATH;
import com.app.common.dataDictionary.DE.DE_C_BRAND_FILENEWPATH;
import com.app.common.dataDictionary.DE.DE_C_BRAND_FILEDOMAIN;
import com.app.common.dataDictionary.DE.DE_C_BRAND_FILEOLDPATH;
import com.app.common.dataDictionary.DE.DE_APP_ANDROID;
import com.app.common.dataDictionary.DE.DE_APP_IOS;


/**
 * 分类店铺品牌详情表; InnoDB free: 10240 kB
 */
@PersistObject
public class TCategoryShopPO extends AbsPersistObject {
	//private static final long serialVersionUID = -5910842774124889372L;
	private static final long serialVersionUID = 1L;
	private static final Map<String, Integer> fieldIndex = new HashMap<String, Integer>(33);
	private static final BitSet HAS_DEFAULT_VALUE = new BitSet(33);
	
	static{
		HAS_DEFAULT_VALUE.set(5, true);HAS_DEFAULT_VALUE.set(6, true);HAS_DEFAULT_VALUE.set(7, true);HAS_DEFAULT_VALUE.set(8, true);HAS_DEFAULT_VALUE.set(10, true);HAS_DEFAULT_VALUE.set(11, true);HAS_DEFAULT_VALUE.set(12, true);HAS_DEFAULT_VALUE.set(17, true);HAS_DEFAULT_VALUE.set(18, true);
		fieldIndex.put("cBrandId",0);fieldIndex.put("categoryId",1);fieldIndex.put("webusername",2);fieldIndex.put("cBrandTitle",3);fieldIndex.put("cBrandFbt",4);fieldIndex.put("cBrandClicknumber",5);fieldIndex.put("cBrandTotalwealth",6);fieldIndex.put("cBrandWealth",7);fieldIndex.put("cBrandWealthSjxz",8);fieldIndex.put("cBrandWealthGqsj",9);fieldIndex.put("cBrandSfnew",10);fieldIndex.put("cBrandNewnum",11);fieldIndex.put("cBrandSftop",12);fieldIndex.put("cBrandOpptime",13);fieldIndex.put("cBrandExttime",14);fieldIndex.put("webshzt",15);fieldIndex.put("webshsj",16);fieldIndex.put("appAndroidXzcs",17);fieldIndex.put("appIosXzcs",18);fieldIndex.put("invoiceCategory",19);fieldIndex.put("invoiceTaitoulx",20);fieldIndex.put("invoiceTaitou",21);fieldIndex.put("invoiceContent",22);fieldIndex.put("invoiceSprxm",23);fieldIndex.put("invoiceSprlxdh",24);fieldIndex.put("invoiceSprdz",25);fieldIndex.put("invoiceSpremail",26);fieldIndex.put("cBrandXtbpath",27);fieldIndex.put("cBrandFilenewpath",28);fieldIndex.put("cBrandFiledomain",29);fieldIndex.put("cBrandFileoldpath",30);fieldIndex.put("appAndroid",31);fieldIndex.put("appIos",32);
	}
	
	/**
	 * 物理表名
	 */
	public static final String TABLE_NAME = "t_category_shop";

	/**
	 * 分类品牌详情id
	 */
	private DE_C_BRAND_ID cBrandId = DE_C_BRAND_ID.getTemplateInstance();

	/**
	 * 品牌所属分类id
	 */
	private DE_CATEGORY_ID categoryId = DE_CATEGORY_ID.getTemplateInstance();

	/**
	 * 分类品牌详情点击后官网地址
	 */
	private DE_WEBUSERNAME webusername = DE_WEBUSERNAME.getTemplateInstance();

	/**
	 * 分类品牌详情title
	 */
	private DE_C_BRAND_TITLE cBrandTitle = DE_C_BRAND_TITLE.getTemplateInstance();

	/**
	 * 店铺副标题(商圈)
	 */
	private DE_C_BRAND_FBT cBrandFbt = DE_C_BRAND_FBT.getTemplateInstance();

	/**
	 * 分类品牌详情点击量
	 */
	private DE_C_BRAND_CLICKNUMBER cBrandClicknumber = DE_C_BRAND_CLICKNUMBER.getTemplateInstance();

	/**
	 * 商户的总财富值
	 */
	private DE_C_BRAND_TOTALWEALTH cBrandTotalwealth = DE_C_BRAND_TOTALWEALTH.getTemplateInstance();

	/**
	 * 分类品牌详情点击后所赠财富值
	 */
	private DE_C_BRAND_WEALTH cBrandWealth = DE_C_BRAND_WEALTH.getTemplateInstance();

	/**
	 * 增加财富值时间限制
	 */
	private DE_C_BRAND_WEALTH_SJXZ cBrandWealthSjxz = DE_C_BRAND_WEALTH_SJXZ.getTemplateInstance();

	/**
	 * 增加财富值过期时间
	 */
	private DE_C_BRAND_WEALTH_GQSJ cBrandWealthGqsj = DE_C_BRAND_WEALTH_GQSJ.getTemplateInstance();

	/**
	 * 分类品牌是否new
	 */
	private DE_C_BRAND_SFNEW cBrandSfnew = DE_C_BRAND_SFNEW.getTemplateInstance();

	/**
	 * 品牌new的数量
	 */
	private DE_C_BRAND_NEWNUM cBrandNewnum = DE_C_BRAND_NEWNUM.getTemplateInstance();

	/**
	 * 分类品牌是否置顶
	 */
	private DE_C_BRAND_SFTOP cBrandSftop = DE_C_BRAND_SFTOP.getTemplateInstance();

	/**
	 * 分类品牌详情最后一次操作时间
	 */
	private DE_C_BRAND_OPPTIME cBrandOpptime = DE_C_BRAND_OPPTIME.getTemplateInstance();

	/**
	 * 品牌扩展时间
	 */
	private DE_C_BRAND_EXTTIME cBrandExttime = DE_C_BRAND_EXTTIME.getTemplateInstance();

	/**
	 * 品牌web页审核状态
	 */
	private DE_WEBSHZT webshzt = DE_WEBSHZT.getTemplateInstance();

	/**
	 * 品牌web页审核时间
	 */
	private DE_WEBSHSJ webshsj = DE_WEBSHSJ.getTemplateInstance();

	/**
	 * 商户android客户端应用下载次数
	 */
	private DE_APP_ANDROID_XZCS appAndroidXzcs = DE_APP_ANDROID_XZCS.getTemplateInstance();

	/**
	 * 商户ios客户端应用下载次数
	 */
	private DE_APP_IOS_XZCS appIosXzcs = DE_APP_IOS_XZCS.getTemplateInstance();

	/**
	 * 发票种类
	 */
	private DE_INVOICE_CATEGORY invoiceCategory = DE_INVOICE_CATEGORY.getTemplateInstance();

	/**
	 * 发票抬头类型
	 */
	private DE_INVOICE_TAITOULX invoiceTaitoulx = DE_INVOICE_TAITOULX.getTemplateInstance();

	/**
	 * 发票抬头
	 */
	private DE_INVOICE_TAITOU invoiceTaitou = DE_INVOICE_TAITOU.getTemplateInstance();

	/**
	 * 发票内容
	 */
	private DE_INVOICE_CONTENT invoiceContent = DE_INVOICE_CONTENT.getTemplateInstance();

	/**
	 * 发票收票人姓名
	 */
	private DE_INVOICE_SPRXM invoiceSprxm = DE_INVOICE_SPRXM.getTemplateInstance();

	/**
	 * 发票收票人手机
	 */
	private DE_INVOICE_SPRLXDH invoiceSprlxdh = DE_INVOICE_SPRLXDH.getTemplateInstance();

	/**
	 * 发票收票人地址
	 */
	private DE_INVOICE_SPRDZ invoiceSprdz = DE_INVOICE_SPRDZ.getTemplateInstance();

	/**
	 * 发票收票人邮箱
	 */
	private DE_INVOICE_SPREMAIL invoiceSpremail = DE_INVOICE_SPREMAIL.getTemplateInstance();

	/**
	 * 店铺小图标path
	 */
	private DE_C_BRAND_XTBPATH cBrandXtbpath = DE_C_BRAND_XTBPATH.getTemplateInstance();

	/**
	 * 分类品牌详情图标名字
	 */
	private DE_C_BRAND_FILENEWPATH cBrandFilenewpath = DE_C_BRAND_FILENEWPATH.getTemplateInstance();

	/**
	 * 分类品牌详情上传分主路径
	 */
	private DE_C_BRAND_FILEDOMAIN cBrandFiledomain = DE_C_BRAND_FILEDOMAIN.getTemplateInstance();

	/**
	 * 分类品牌详情图标路径
	 */
	private DE_C_BRAND_FILEOLDPATH cBrandFileoldpath = DE_C_BRAND_FILEOLDPATH.getTemplateInstance();

	/**
	 * android下载地址
	 */
	private DE_APP_ANDROID appAndroid = DE_APP_ANDROID.getTemplateInstance();

	/**
	 * ios下载地址
	 */
	private DE_APP_IOS appIos = DE_APP_IOS.getTemplateInstance();


	public TCategoryShopPO(){
		this.insertState = new BitSet(33);
		this.updateState = new BitSet(33);
	}

	
	/**
	 * 获取 "分类品牌详情id" 值
	 */	
	public DE_C_BRAND_ID getCBrandId(){
		return  cBrandId;
	}
	
	/**
	 * 设置 "分类品牌详情id" 值
	 */
	public void setCBrandId(DE_C_BRAND_ID cBrandId) {
		if(cBrandId == null){
			cBrandId= DE_C_BRAND_ID.getTemplateInstance();
		}
		recordChangeFlag(0);
		this.cBrandId = cBrandId;
	}
	
	/**
	 * 获取 "品牌所属分类id" 值
	 */	
	public DE_CATEGORY_ID getCategoryId(){
		return  categoryId;
	}
	
	/**
	 * 设置 "品牌所属分类id" 值
	 */
	public void setCategoryId(DE_CATEGORY_ID categoryId) {
		if(categoryId == null){
			categoryId= DE_CATEGORY_ID.getTemplateInstance();
		}
		recordChangeFlag(1);
		this.categoryId = categoryId;
	}
	
	/**
	 * 获取 "分类品牌详情点击后官网地址" 值
	 */	
	public DE_WEBUSERNAME getWebusername(){
		return  webusername;
	}
	
	/**
	 * 设置 "分类品牌详情点击后官网地址" 值
	 */
	public void setWebusername(DE_WEBUSERNAME webusername) {
		if(webusername == null){
			webusername= DE_WEBUSERNAME.getTemplateInstance();
		}
		recordChangeFlag(2);
		this.webusername = webusername;
	}
	
	/**
	 * 获取 "分类品牌详情title" 值
	 */	
	public DE_C_BRAND_TITLE getCBrandTitle(){
		return  cBrandTitle;
	}
	
	/**
	 * 设置 "分类品牌详情title" 值
	 */
	public void setCBrandTitle(DE_C_BRAND_TITLE cBrandTitle) {
		if(cBrandTitle == null){
			cBrandTitle= DE_C_BRAND_TITLE.getTemplateInstance();
		}
		recordChangeFlag(3);
		this.cBrandTitle = cBrandTitle;
	}
	
	/**
	 * 获取 "店铺副标题(商圈)" 值
	 */	
	public DE_C_BRAND_FBT getCBrandFbt(){
		return  cBrandFbt;
	}
	
	/**
	 * 设置 "店铺副标题(商圈)" 值
	 */
	public void setCBrandFbt(DE_C_BRAND_FBT cBrandFbt) {
		if(cBrandFbt == null){
			cBrandFbt= DE_C_BRAND_FBT.getTemplateInstance();
		}
		recordChangeFlag(4);
		this.cBrandFbt = cBrandFbt;
	}
	
	/**
	 * 获取 "分类品牌详情点击量" 值
	 */	
	public DE_C_BRAND_CLICKNUMBER getCBrandClicknumber(){
		return  cBrandClicknumber;
	}
	
	/**
	 * 设置 "分类品牌详情点击量" 值
	 */
	public void setCBrandClicknumber(DE_C_BRAND_CLICKNUMBER cBrandClicknumber) {
		if(cBrandClicknumber == null){
			cBrandClicknumber= DE_C_BRAND_CLICKNUMBER.getTemplateInstance();
		}
		recordChangeFlag(5);
		this.cBrandClicknumber = cBrandClicknumber;
	}
	
	/**
	 * 获取 "商户的总财富值" 值
	 */	
	public DE_C_BRAND_TOTALWEALTH getCBrandTotalwealth(){
		return  cBrandTotalwealth;
	}
	
	/**
	 * 设置 "商户的总财富值" 值
	 */
	public void setCBrandTotalwealth(DE_C_BRAND_TOTALWEALTH cBrandTotalwealth) {
		if(cBrandTotalwealth == null){
			cBrandTotalwealth= DE_C_BRAND_TOTALWEALTH.getTemplateInstance();
		}
		recordChangeFlag(6);
		this.cBrandTotalwealth = cBrandTotalwealth;
	}
	
	/**
	 * 获取 "分类品牌详情点击后所赠财富值" 值
	 */	
	public DE_C_BRAND_WEALTH getCBrandWealth(){
		return  cBrandWealth;
	}
	
	/**
	 * 设置 "分类品牌详情点击后所赠财富值" 值
	 */
	public void setCBrandWealth(DE_C_BRAND_WEALTH cBrandWealth) {
		if(cBrandWealth == null){
			cBrandWealth= DE_C_BRAND_WEALTH.getTemplateInstance();
		}
		recordChangeFlag(7);
		this.cBrandWealth = cBrandWealth;
	}
	
	/**
	 * 获取 "增加财富值时间限制" 值
	 */	
	public DE_C_BRAND_WEALTH_SJXZ getCBrandWealthSjxz(){
		return  cBrandWealthSjxz;
	}
	
	/**
	 * 设置 "增加财富值时间限制" 值
	 */
	public void setCBrandWealthSjxz(DE_C_BRAND_WEALTH_SJXZ cBrandWealthSjxz) {
		if(cBrandWealthSjxz == null){
			cBrandWealthSjxz= DE_C_BRAND_WEALTH_SJXZ.getTemplateInstance();
		}
		recordChangeFlag(8);
		this.cBrandWealthSjxz = cBrandWealthSjxz;
	}
	
	/**
	 * 获取 "增加财富值过期时间" 值
	 */	
	public DE_C_BRAND_WEALTH_GQSJ getCBrandWealthGqsj(){
		return  cBrandWealthGqsj;
	}
	
	/**
	 * 设置 "增加财富值过期时间" 值
	 */
	public void setCBrandWealthGqsj(DE_C_BRAND_WEALTH_GQSJ cBrandWealthGqsj) {
		if(cBrandWealthGqsj == null){
			cBrandWealthGqsj= DE_C_BRAND_WEALTH_GQSJ.getTemplateInstance();
		}
		recordChangeFlag(9);
		this.cBrandWealthGqsj = cBrandWealthGqsj;
	}
	
	/**
	 * 获取 "分类品牌是否new" 值
	 */	
	public DE_C_BRAND_SFNEW getCBrandSfnew(){
		return  cBrandSfnew;
	}
	
	/**
	 * 设置 "分类品牌是否new" 值
	 */
	public void setCBrandSfnew(DE_C_BRAND_SFNEW cBrandSfnew) {
		if(cBrandSfnew == null){
			cBrandSfnew= DE_C_BRAND_SFNEW.getTemplateInstance();
		}
		recordChangeFlag(10);
		this.cBrandSfnew = cBrandSfnew;
	}
	
	/**
	 * 获取 "品牌new的数量" 值
	 */	
	public DE_C_BRAND_NEWNUM getCBrandNewnum(){
		return  cBrandNewnum;
	}
	
	/**
	 * 设置 "品牌new的数量" 值
	 */
	public void setCBrandNewnum(DE_C_BRAND_NEWNUM cBrandNewnum) {
		if(cBrandNewnum == null){
			cBrandNewnum= DE_C_BRAND_NEWNUM.getTemplateInstance();
		}
		recordChangeFlag(11);
		this.cBrandNewnum = cBrandNewnum;
	}
	
	/**
	 * 获取 "分类品牌是否置顶" 值
	 */	
	public DE_C_BRAND_SFTOP getCBrandSftop(){
		return  cBrandSftop;
	}
	
	/**
	 * 设置 "分类品牌是否置顶" 值
	 */
	public void setCBrandSftop(DE_C_BRAND_SFTOP cBrandSftop) {
		if(cBrandSftop == null){
			cBrandSftop= DE_C_BRAND_SFTOP.getTemplateInstance();
		}
		recordChangeFlag(12);
		this.cBrandSftop = cBrandSftop;
	}
	
	/**
	 * 获取 "分类品牌详情最后一次操作时间" 值
	 */	
	public DE_C_BRAND_OPPTIME getCBrandOpptime(){
		return  cBrandOpptime;
	}
	
	/**
	 * 设置 "分类品牌详情最后一次操作时间" 值
	 */
	public void setCBrandOpptime(DE_C_BRAND_OPPTIME cBrandOpptime) {
		if(cBrandOpptime == null){
			cBrandOpptime= DE_C_BRAND_OPPTIME.getTemplateInstance();
		}
		recordChangeFlag(13);
		this.cBrandOpptime = cBrandOpptime;
	}
	
	/**
	 * 获取 "品牌扩展时间" 值
	 */	
	public DE_C_BRAND_EXTTIME getCBrandExttime(){
		return  cBrandExttime;
	}
	
	/**
	 * 设置 "品牌扩展时间" 值
	 */
	public void setCBrandExttime(DE_C_BRAND_EXTTIME cBrandExttime) {
		if(cBrandExttime == null){
			cBrandExttime= DE_C_BRAND_EXTTIME.getTemplateInstance();
		}
		recordChangeFlag(14);
		this.cBrandExttime = cBrandExttime;
	}
	
	/**
	 * 获取 "品牌web页审核状态" 值
	 */	
	public DE_WEBSHZT getWebshzt(){
		return  webshzt;
	}
	
	/**
	 * 设置 "品牌web页审核状态" 值
	 */
	public void setWebshzt(DE_WEBSHZT webshzt) {
		if(webshzt == null){
			webshzt= DE_WEBSHZT.getTemplateInstance();
		}
		recordChangeFlag(15);
		this.webshzt = webshzt;
	}
	
	/**
	 * 获取 "品牌web页审核时间" 值
	 */	
	public DE_WEBSHSJ getWebshsj(){
		return  webshsj;
	}
	
	/**
	 * 设置 "品牌web页审核时间" 值
	 */
	public void setWebshsj(DE_WEBSHSJ webshsj) {
		if(webshsj == null){
			webshsj= DE_WEBSHSJ.getTemplateInstance();
		}
		recordChangeFlag(16);
		this.webshsj = webshsj;
	}
	
	/**
	 * 获取 "商户android客户端应用下载次数" 值
	 */	
	public DE_APP_ANDROID_XZCS getAppAndroidXzcs(){
		return  appAndroidXzcs;
	}
	
	/**
	 * 设置 "商户android客户端应用下载次数" 值
	 */
	public void setAppAndroidXzcs(DE_APP_ANDROID_XZCS appAndroidXzcs) {
		if(appAndroidXzcs == null){
			appAndroidXzcs= DE_APP_ANDROID_XZCS.getTemplateInstance();
		}
		recordChangeFlag(17);
		this.appAndroidXzcs = appAndroidXzcs;
	}
	
	/**
	 * 获取 "商户ios客户端应用下载次数" 值
	 */	
	public DE_APP_IOS_XZCS getAppIosXzcs(){
		return  appIosXzcs;
	}
	
	/**
	 * 设置 "商户ios客户端应用下载次数" 值
	 */
	public void setAppIosXzcs(DE_APP_IOS_XZCS appIosXzcs) {
		if(appIosXzcs == null){
			appIosXzcs= DE_APP_IOS_XZCS.getTemplateInstance();
		}
		recordChangeFlag(18);
		this.appIosXzcs = appIosXzcs;
	}
	
	/**
	 * 获取 "发票种类" 值
	 */	
	public DE_INVOICE_CATEGORY getInvoiceCategory(){
		return  invoiceCategory;
	}
	
	/**
	 * 设置 "发票种类" 值
	 */
	public void setInvoiceCategory(DE_INVOICE_CATEGORY invoiceCategory) {
		if(invoiceCategory == null){
			invoiceCategory= DE_INVOICE_CATEGORY.getTemplateInstance();
		}
		recordChangeFlag(19);
		this.invoiceCategory = invoiceCategory;
	}
	
	/**
	 * 获取 "发票抬头类型" 值
	 */	
	public DE_INVOICE_TAITOULX getInvoiceTaitoulx(){
		return  invoiceTaitoulx;
	}
	
	/**
	 * 设置 "发票抬头类型" 值
	 */
	public void setInvoiceTaitoulx(DE_INVOICE_TAITOULX invoiceTaitoulx) {
		if(invoiceTaitoulx == null){
			invoiceTaitoulx= DE_INVOICE_TAITOULX.getTemplateInstance();
		}
		recordChangeFlag(20);
		this.invoiceTaitoulx = invoiceTaitoulx;
	}
	
	/**
	 * 获取 "发票抬头" 值
	 */	
	public DE_INVOICE_TAITOU getInvoiceTaitou(){
		return  invoiceTaitou;
	}
	
	/**
	 * 设置 "发票抬头" 值
	 */
	public void setInvoiceTaitou(DE_INVOICE_TAITOU invoiceTaitou) {
		if(invoiceTaitou == null){
			invoiceTaitou= DE_INVOICE_TAITOU.getTemplateInstance();
		}
		recordChangeFlag(21);
		this.invoiceTaitou = invoiceTaitou;
	}
	
	/**
	 * 获取 "发票内容" 值
	 */	
	public DE_INVOICE_CONTENT getInvoiceContent(){
		return  invoiceContent;
	}
	
	/**
	 * 设置 "发票内容" 值
	 */
	public void setInvoiceContent(DE_INVOICE_CONTENT invoiceContent) {
		if(invoiceContent == null){
			invoiceContent= DE_INVOICE_CONTENT.getTemplateInstance();
		}
		recordChangeFlag(22);
		this.invoiceContent = invoiceContent;
	}
	
	/**
	 * 获取 "发票收票人姓名" 值
	 */	
	public DE_INVOICE_SPRXM getInvoiceSprxm(){
		return  invoiceSprxm;
	}
	
	/**
	 * 设置 "发票收票人姓名" 值
	 */
	public void setInvoiceSprxm(DE_INVOICE_SPRXM invoiceSprxm) {
		if(invoiceSprxm == null){
			invoiceSprxm= DE_INVOICE_SPRXM.getTemplateInstance();
		}
		recordChangeFlag(23);
		this.invoiceSprxm = invoiceSprxm;
	}
	
	/**
	 * 获取 "发票收票人手机" 值
	 */	
	public DE_INVOICE_SPRLXDH getInvoiceSprlxdh(){
		return  invoiceSprlxdh;
	}
	
	/**
	 * 设置 "发票收票人手机" 值
	 */
	public void setInvoiceSprlxdh(DE_INVOICE_SPRLXDH invoiceSprlxdh) {
		if(invoiceSprlxdh == null){
			invoiceSprlxdh= DE_INVOICE_SPRLXDH.getTemplateInstance();
		}
		recordChangeFlag(24);
		this.invoiceSprlxdh = invoiceSprlxdh;
	}
	
	/**
	 * 获取 "发票收票人地址" 值
	 */	
	public DE_INVOICE_SPRDZ getInvoiceSprdz(){
		return  invoiceSprdz;
	}
	
	/**
	 * 设置 "发票收票人地址" 值
	 */
	public void setInvoiceSprdz(DE_INVOICE_SPRDZ invoiceSprdz) {
		if(invoiceSprdz == null){
			invoiceSprdz= DE_INVOICE_SPRDZ.getTemplateInstance();
		}
		recordChangeFlag(25);
		this.invoiceSprdz = invoiceSprdz;
	}
	
	/**
	 * 获取 "发票收票人邮箱" 值
	 */	
	public DE_INVOICE_SPREMAIL getInvoiceSpremail(){
		return  invoiceSpremail;
	}
	
	/**
	 * 设置 "发票收票人邮箱" 值
	 */
	public void setInvoiceSpremail(DE_INVOICE_SPREMAIL invoiceSpremail) {
		if(invoiceSpremail == null){
			invoiceSpremail= DE_INVOICE_SPREMAIL.getTemplateInstance();
		}
		recordChangeFlag(26);
		this.invoiceSpremail = invoiceSpremail;
	}
	
	/**
	 * 获取 "店铺小图标path" 值
	 */	
	public DE_C_BRAND_XTBPATH getCBrandXtbpath(){
		return  cBrandXtbpath;
	}
	
	/**
	 * 设置 "店铺小图标path" 值
	 */
	public void setCBrandXtbpath(DE_C_BRAND_XTBPATH cBrandXtbpath) {
		if(cBrandXtbpath == null){
			cBrandXtbpath= DE_C_BRAND_XTBPATH.getTemplateInstance();
		}
		recordChangeFlag(27);
		this.cBrandXtbpath = cBrandXtbpath;
	}
	
	/**
	 * 获取 "分类品牌详情图标名字" 值
	 */	
	public DE_C_BRAND_FILENEWPATH getCBrandFilenewpath(){
		return  cBrandFilenewpath;
	}
	
	/**
	 * 设置 "分类品牌详情图标名字" 值
	 */
	public void setCBrandFilenewpath(DE_C_BRAND_FILENEWPATH cBrandFilenewpath) {
		if(cBrandFilenewpath == null){
			cBrandFilenewpath= DE_C_BRAND_FILENEWPATH.getTemplateInstance();
		}
		recordChangeFlag(28);
		this.cBrandFilenewpath = cBrandFilenewpath;
	}
	
	/**
	 * 获取 "分类品牌详情上传分主路径" 值
	 */	
	public DE_C_BRAND_FILEDOMAIN getCBrandFiledomain(){
		return  cBrandFiledomain;
	}
	
	/**
	 * 设置 "分类品牌详情上传分主路径" 值
	 */
	public void setCBrandFiledomain(DE_C_BRAND_FILEDOMAIN cBrandFiledomain) {
		if(cBrandFiledomain == null){
			cBrandFiledomain= DE_C_BRAND_FILEDOMAIN.getTemplateInstance();
		}
		recordChangeFlag(29);
		this.cBrandFiledomain = cBrandFiledomain;
	}
	
	/**
	 * 获取 "分类品牌详情图标路径" 值
	 */	
	public DE_C_BRAND_FILEOLDPATH getCBrandFileoldpath(){
		return  cBrandFileoldpath;
	}
	
	/**
	 * 设置 "分类品牌详情图标路径" 值
	 */
	public void setCBrandFileoldpath(DE_C_BRAND_FILEOLDPATH cBrandFileoldpath) {
		if(cBrandFileoldpath == null){
			cBrandFileoldpath= DE_C_BRAND_FILEOLDPATH.getTemplateInstance();
		}
		recordChangeFlag(30);
		this.cBrandFileoldpath = cBrandFileoldpath;
	}
	
	/**
	 * 获取 "android下载地址" 值
	 */	
	public DE_APP_ANDROID getAppAndroid(){
		return  appAndroid;
	}
	
	/**
	 * 设置 "android下载地址" 值
	 */
	public void setAppAndroid(DE_APP_ANDROID appAndroid) {
		if(appAndroid == null){
			appAndroid= DE_APP_ANDROID.getTemplateInstance();
		}
		recordChangeFlag(31);
		this.appAndroid = appAndroid;
	}
	
	/**
	 * 获取 "ios下载地址" 值
	 */	
	public DE_APP_IOS getAppIos(){
		return  appIos;
	}
	
	/**
	 * 设置 "ios下载地址" 值
	 */
	public void setAppIos(DE_APP_IOS appIos) {
		if(appIos == null){
			appIos= DE_APP_IOS.getTemplateInstance();
		}
		recordChangeFlag(32);
		this.appIos = appIos;
	}


	@Override
	public BaseDataElement<?>[] fields(){
		return new BaseDataElement<?>[] {cBrandId,categoryId,webusername,cBrandTitle,cBrandFbt,cBrandClicknumber,cBrandTotalwealth,cBrandWealth,cBrandWealthSjxz,cBrandWealthGqsj,cBrandSfnew,cBrandNewnum,cBrandSftop,cBrandOpptime,cBrandExttime,webshzt,webshsj,appAndroidXzcs,appIosXzcs,invoiceCategory,invoiceTaitoulx,invoiceTaitou,invoiceContent,invoiceSprxm,invoiceSprlxdh,invoiceSprdz,invoiceSpremail,cBrandXtbpath,cBrandFilenewpath,cBrandFiledomain,cBrandFileoldpath,appAndroid,appIos};
	}
	
	@Override
	public String[] fieldNames() {
		return new String[]{"cBrandId","categoryId","webusername","cBrandTitle","cBrandFbt","cBrandClicknumber","cBrandTotalwealth","cBrandWealth","cBrandWealthSjxz","cBrandWealthGqsj","cBrandSfnew","cBrandNewnum","cBrandSftop","cBrandOpptime","cBrandExttime","webshzt","webshsj","appAndroidXzcs","appIosXzcs","invoiceCategory","invoiceTaitoulx","invoiceTaitou","invoiceContent","invoiceSprxm","invoiceSprlxdh","invoiceSprdz","invoiceSpremail","cBrandXtbpath","cBrandFilenewpath","cBrandFiledomain","cBrandFileoldpath","appAndroid","appIos"};
	}
	
	@Override
	public BaseDataElement<?> getFieldValue(String fieldName)  {
		final Integer index = fieldIndex.get(fieldName);
		if (index == null) {
			throw new IllegalArgumentException("PO对象中没有" + fieldName + "字段");
		}
		switch (index) {
		case 0 : return cBrandId;
		case 1 : return categoryId;
		case 2 : return webusername;
		case 3 : return cBrandTitle;
		case 4 : return cBrandFbt;
		case 5 : return cBrandClicknumber;
		case 6 : return cBrandTotalwealth;
		case 7 : return cBrandWealth;
		case 8 : return cBrandWealthSjxz;
		case 9 : return cBrandWealthGqsj;
		case 10 : return cBrandSfnew;
		case 11 : return cBrandNewnum;
		case 12 : return cBrandSftop;
		case 13 : return cBrandOpptime;
		case 14 : return cBrandExttime;
		case 15 : return webshzt;
		case 16 : return webshsj;
		case 17 : return appAndroidXzcs;
		case 18 : return appIosXzcs;
		case 19 : return invoiceCategory;
		case 20 : return invoiceTaitoulx;
		case 21 : return invoiceTaitou;
		case 22 : return invoiceContent;
		case 23 : return invoiceSprxm;
		case 24 : return invoiceSprlxdh;
		case 25 : return invoiceSprdz;
		case 26 : return invoiceSpremail;
		case 27 : return cBrandXtbpath;
		case 28 : return cBrandFilenewpath;
		case 29 : return cBrandFiledomain;
		case 30 : return cBrandFileoldpath;
		case 31 : return appAndroid;
		case 32 : return appIos;
 
		default:
			throw new IllegalArgumentException("PO对象中没有" + fieldName + "字段");
		}
	}
	
	@Override
	public TCategoryShopPO setFieldValue(String fieldName, Object fieldValue) throws SwordBaseCheckedException {
		if (fieldValue != null && !(fieldValue instanceof BaseDataElement<?>)) {
			throw new SwordBaseCheckedException("字段值类型不是DataElelement子类型");
		}

		final Integer index = fieldIndex.get(fieldName);
		if (index == null) {
			throw new SwordBaseCheckedException("PO对象中没有" + fieldName + "字段");
		}

		switch (index) {

				case 0 : {
					if (fieldValue == null) {
						setCBrandId(null);
					} else {
						setCBrandId((DE_C_BRAND_ID) fieldValue);
					}
					return this;
				}
				
				case 1 : {
					if (fieldValue == null) {
						setCategoryId(null);
					} else {
						setCategoryId((DE_CATEGORY_ID) fieldValue);
					}
					return this;
				}
				
				case 2 : {
					if (fieldValue == null) {
						setWebusername(null);
					} else {
						setWebusername((DE_WEBUSERNAME) fieldValue);
					}
					return this;
				}
				
				case 3 : {
					if (fieldValue == null) {
						setCBrandTitle(null);
					} else {
						setCBrandTitle((DE_C_BRAND_TITLE) fieldValue);
					}
					return this;
				}
				
				case 4 : {
					if (fieldValue == null) {
						setCBrandFbt(null);
					} else {
						setCBrandFbt((DE_C_BRAND_FBT) fieldValue);
					}
					return this;
				}
				
				case 5 : {
					if (fieldValue == null) {
						setCBrandClicknumber(null);
					} else {
						setCBrandClicknumber((DE_C_BRAND_CLICKNUMBER) fieldValue);
					}
					return this;
				}
				
				case 6 : {
					if (fieldValue == null) {
						setCBrandTotalwealth(null);
					} else {
						setCBrandTotalwealth((DE_C_BRAND_TOTALWEALTH) fieldValue);
					}
					return this;
				}
				
				case 7 : {
					if (fieldValue == null) {
						setCBrandWealth(null);
					} else {
						setCBrandWealth((DE_C_BRAND_WEALTH) fieldValue);
					}
					return this;
				}
				
				case 8 : {
					if (fieldValue == null) {
						setCBrandWealthSjxz(null);
					} else {
						setCBrandWealthSjxz((DE_C_BRAND_WEALTH_SJXZ) fieldValue);
					}
					return this;
				}
				
				case 9 : {
					if (fieldValue == null) {
						setCBrandWealthGqsj(null);
					} else {
						setCBrandWealthGqsj((DE_C_BRAND_WEALTH_GQSJ) fieldValue);
					}
					return this;
				}
				
				case 10 : {
					if (fieldValue == null) {
						setCBrandSfnew(null);
					} else {
						setCBrandSfnew((DE_C_BRAND_SFNEW) fieldValue);
					}
					return this;
				}
				
				case 11 : {
					if (fieldValue == null) {
						setCBrandNewnum(null);
					} else {
						setCBrandNewnum((DE_C_BRAND_NEWNUM) fieldValue);
					}
					return this;
				}
				
				case 12 : {
					if (fieldValue == null) {
						setCBrandSftop(null);
					} else {
						setCBrandSftop((DE_C_BRAND_SFTOP) fieldValue);
					}
					return this;
				}
				
				case 13 : {
					if (fieldValue == null) {
						setCBrandOpptime(null);
					} else {
						setCBrandOpptime((DE_C_BRAND_OPPTIME) fieldValue);
					}
					return this;
				}
				
				case 14 : {
					if (fieldValue == null) {
						setCBrandExttime(null);
					} else {
						setCBrandExttime((DE_C_BRAND_EXTTIME) fieldValue);
					}
					return this;
				}
				
				case 15 : {
					if (fieldValue == null) {
						setWebshzt(null);
					} else {
						setWebshzt((DE_WEBSHZT) fieldValue);
					}
					return this;
				}
				
				case 16 : {
					if (fieldValue == null) {
						setWebshsj(null);
					} else {
						setWebshsj((DE_WEBSHSJ) fieldValue);
					}
					return this;
				}
				
				case 17 : {
					if (fieldValue == null) {
						setAppAndroidXzcs(null);
					} else {
						setAppAndroidXzcs((DE_APP_ANDROID_XZCS) fieldValue);
					}
					return this;
				}
				
				case 18 : {
					if (fieldValue == null) {
						setAppIosXzcs(null);
					} else {
						setAppIosXzcs((DE_APP_IOS_XZCS) fieldValue);
					}
					return this;
				}
				
				case 19 : {
					if (fieldValue == null) {
						setInvoiceCategory(null);
					} else {
						setInvoiceCategory((DE_INVOICE_CATEGORY) fieldValue);
					}
					return this;
				}
				
				case 20 : {
					if (fieldValue == null) {
						setInvoiceTaitoulx(null);
					} else {
						setInvoiceTaitoulx((DE_INVOICE_TAITOULX) fieldValue);
					}
					return this;
				}
				
				case 21 : {
					if (fieldValue == null) {
						setInvoiceTaitou(null);
					} else {
						setInvoiceTaitou((DE_INVOICE_TAITOU) fieldValue);
					}
					return this;
				}
				
				case 22 : {
					if (fieldValue == null) {
						setInvoiceContent(null);
					} else {
						setInvoiceContent((DE_INVOICE_CONTENT) fieldValue);
					}
					return this;
				}
				
				case 23 : {
					if (fieldValue == null) {
						setInvoiceSprxm(null);
					} else {
						setInvoiceSprxm((DE_INVOICE_SPRXM) fieldValue);
					}
					return this;
				}
				
				case 24 : {
					if (fieldValue == null) {
						setInvoiceSprlxdh(null);
					} else {
						setInvoiceSprlxdh((DE_INVOICE_SPRLXDH) fieldValue);
					}
					return this;
				}
				
				case 25 : {
					if (fieldValue == null) {
						setInvoiceSprdz(null);
					} else {
						setInvoiceSprdz((DE_INVOICE_SPRDZ) fieldValue);
					}
					return this;
				}
				
				case 26 : {
					if (fieldValue == null) {
						setInvoiceSpremail(null);
					} else {
						setInvoiceSpremail((DE_INVOICE_SPREMAIL) fieldValue);
					}
					return this;
				}
				
				case 27 : {
					if (fieldValue == null) {
						setCBrandXtbpath(null);
					} else {
						setCBrandXtbpath((DE_C_BRAND_XTBPATH) fieldValue);
					}
					return this;
				}
				
				case 28 : {
					if (fieldValue == null) {
						setCBrandFilenewpath(null);
					} else {
						setCBrandFilenewpath((DE_C_BRAND_FILENEWPATH) fieldValue);
					}
					return this;
				}
				
				case 29 : {
					if (fieldValue == null) {
						setCBrandFiledomain(null);
					} else {
						setCBrandFiledomain((DE_C_BRAND_FILEDOMAIN) fieldValue);
					}
					return this;
				}
				
				case 30 : {
					if (fieldValue == null) {
						setCBrandFileoldpath(null);
					} else {
						setCBrandFileoldpath((DE_C_BRAND_FILEOLDPATH) fieldValue);
					}
					return this;
				}
				
				case 31 : {
					if (fieldValue == null) {
						setAppAndroid(null);
					} else {
						setAppAndroid((DE_APP_ANDROID) fieldValue);
					}
					return this;
				}
				
				case 32 : {
					if (fieldValue == null) {
						setAppIos(null);
					} else {
						setAppIos((DE_APP_IOS) fieldValue);
					}
					return this;
				}
				
		default:
			throw new SwordBaseCheckedException("PO对象中没有" + fieldName + "字段");
		}
	
	}

	@Override
	protected TCategoryShopPO clone() {
		TCategoryShopPO t = new TCategoryShopPO();
		
		t.setCBrandId(this.cBrandId);
		t.setCategoryId(this.categoryId);
		t.setWebusername(this.webusername);
		t.setCBrandTitle(this.cBrandTitle);
		t.setCBrandFbt(this.cBrandFbt);
		t.setCBrandClicknumber(this.cBrandClicknumber);
		t.setCBrandTotalwealth(this.cBrandTotalwealth);
		t.setCBrandWealth(this.cBrandWealth);
		t.setCBrandWealthSjxz(this.cBrandWealthSjxz);
		t.setCBrandWealthGqsj(this.cBrandWealthGqsj);
		t.setCBrandSfnew(this.cBrandSfnew);
		t.setCBrandNewnum(this.cBrandNewnum);
		t.setCBrandSftop(this.cBrandSftop);
		t.setCBrandOpptime(this.cBrandOpptime);
		t.setCBrandExttime(this.cBrandExttime);
		t.setWebshzt(this.webshzt);
		t.setWebshsj(this.webshsj);
		t.setAppAndroidXzcs(this.appAndroidXzcs);
		t.setAppIosXzcs(this.appIosXzcs);
		t.setInvoiceCategory(this.invoiceCategory);
		t.setInvoiceTaitoulx(this.invoiceTaitoulx);
		t.setInvoiceTaitou(this.invoiceTaitou);
		t.setInvoiceContent(this.invoiceContent);
		t.setInvoiceSprxm(this.invoiceSprxm);
		t.setInvoiceSprlxdh(this.invoiceSprlxdh);
		t.setInvoiceSprdz(this.invoiceSprdz);
		t.setInvoiceSpremail(this.invoiceSpremail);
		t.setCBrandXtbpath(this.cBrandXtbpath);
		t.setCBrandFilenewpath(this.cBrandFilenewpath);
		t.setCBrandFiledomain(this.cBrandFiledomain);
		t.setCBrandFileoldpath(this.cBrandFileoldpath);
		t.setAppAndroid(this.appAndroid);
		t.setAppIos(this.appIos);

		return t;
	}

	@Override
	public TCategoryShopPO loadMap(Map<String, Object> dataMap) throws SwordBaseCheckedException {
		Object value = null;

		if(dataMap.containsKey("cBrandId")){
			value = dataMap.get("cBrandId");
			
			if (value == null) {
				this.setCBrandId(null);
			} else {
				if (value instanceof DE_C_BRAND_ID) {
					this.setCBrandId((DE_C_BRAND_ID) value);
				}
			    else {
					this.setCBrandId(new DE_C_BRAND_ID(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("categoryId")){
			value = dataMap.get("categoryId");
			
			if (value == null) {
				this.setCategoryId(null);
			} else {
				if (value instanceof DE_CATEGORY_ID) {
					this.setCategoryId((DE_CATEGORY_ID) value);
				}
			    else {
					this.setCategoryId(new DE_CATEGORY_ID(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("webusername")){
			value = dataMap.get("webusername");
			
			if (value == null) {
				this.setWebusername(null);
			} else {
				if (value instanceof DE_WEBUSERNAME) {
					this.setWebusername((DE_WEBUSERNAME) value);
				}
			    else {
					this.setWebusername(new DE_WEBUSERNAME(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandTitle")){
			value = dataMap.get("cBrandTitle");
			
			if (value == null) {
				this.setCBrandTitle(null);
			} else {
				if (value instanceof DE_C_BRAND_TITLE) {
					this.setCBrandTitle((DE_C_BRAND_TITLE) value);
				}
			    else {
					this.setCBrandTitle(new DE_C_BRAND_TITLE(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandFbt")){
			value = dataMap.get("cBrandFbt");
			
			if (value == null) {
				this.setCBrandFbt(null);
			} else {
				if (value instanceof DE_C_BRAND_FBT) {
					this.setCBrandFbt((DE_C_BRAND_FBT) value);
				}
			    else {
					this.setCBrandFbt(new DE_C_BRAND_FBT(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandClicknumber")){
			value = dataMap.get("cBrandClicknumber");
			
			if (value == null) {
				this.setCBrandClicknumber(null);
			} else {
				if (value instanceof DE_C_BRAND_CLICKNUMBER) {
					this.setCBrandClicknumber((DE_C_BRAND_CLICKNUMBER) value);
				}
			    else {
					this.setCBrandClicknumber(new DE_C_BRAND_CLICKNUMBER(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandTotalwealth")){
			value = dataMap.get("cBrandTotalwealth");
			
			if (value == null) {
				this.setCBrandTotalwealth(null);
			} else {
				if (value instanceof DE_C_BRAND_TOTALWEALTH) {
					this.setCBrandTotalwealth((DE_C_BRAND_TOTALWEALTH) value);
				}
			    else {
					this.setCBrandTotalwealth(new DE_C_BRAND_TOTALWEALTH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandWealth")){
			value = dataMap.get("cBrandWealth");
			
			if (value == null) {
				this.setCBrandWealth(null);
			} else {
				if (value instanceof DE_C_BRAND_WEALTH) {
					this.setCBrandWealth((DE_C_BRAND_WEALTH) value);
				}
			    else {
					this.setCBrandWealth(new DE_C_BRAND_WEALTH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandWealthSjxz")){
			value = dataMap.get("cBrandWealthSjxz");
			
			if (value == null) {
				this.setCBrandWealthSjxz(null);
			} else {
				if (value instanceof DE_C_BRAND_WEALTH_SJXZ) {
					this.setCBrandWealthSjxz((DE_C_BRAND_WEALTH_SJXZ) value);
				}
			    else {
					this.setCBrandWealthSjxz(new DE_C_BRAND_WEALTH_SJXZ(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandWealthGqsj")){
			value = dataMap.get("cBrandWealthGqsj");
			
			if (value == null) {
				this.setCBrandWealthGqsj(null);
			} else {
				if (value instanceof DE_C_BRAND_WEALTH_GQSJ) {
					this.setCBrandWealthGqsj((DE_C_BRAND_WEALTH_GQSJ) value);
				}
				else if(value instanceof java.util.Date){
					this.setCBrandWealthGqsj(new DE_C_BRAND_WEALTH_GQSJ((java.util.Date)value));
				}
			    else {
					this.setCBrandWealthGqsj(new DE_C_BRAND_WEALTH_GQSJ(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandSfnew")){
			value = dataMap.get("cBrandSfnew");
			
			if (value == null) {
				this.setCBrandSfnew(null);
			} else {
				if (value instanceof DE_C_BRAND_SFNEW) {
					this.setCBrandSfnew((DE_C_BRAND_SFNEW) value);
				}
			    else {
					this.setCBrandSfnew(new DE_C_BRAND_SFNEW(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandNewnum")){
			value = dataMap.get("cBrandNewnum");
			
			if (value == null) {
				this.setCBrandNewnum(null);
			} else {
				if (value instanceof DE_C_BRAND_NEWNUM) {
					this.setCBrandNewnum((DE_C_BRAND_NEWNUM) value);
				}
			    else {
					this.setCBrandNewnum(new DE_C_BRAND_NEWNUM(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandSftop")){
			value = dataMap.get("cBrandSftop");
			
			if (value == null) {
				this.setCBrandSftop(null);
			} else {
				if (value instanceof DE_C_BRAND_SFTOP) {
					this.setCBrandSftop((DE_C_BRAND_SFTOP) value);
				}
			    else {
					this.setCBrandSftop(new DE_C_BRAND_SFTOP(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandOpptime")){
			value = dataMap.get("cBrandOpptime");
			
			if (value == null) {
				this.setCBrandOpptime(null);
			} else {
				if (value instanceof DE_C_BRAND_OPPTIME) {
					this.setCBrandOpptime((DE_C_BRAND_OPPTIME) value);
				}
				else if(value instanceof java.util.Date){
					this.setCBrandOpptime(new DE_C_BRAND_OPPTIME((java.util.Date)value));
				}
			    else {
					this.setCBrandOpptime(new DE_C_BRAND_OPPTIME(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandExttime")){
			value = dataMap.get("cBrandExttime");
			
			if (value == null) {
				this.setCBrandExttime(null);
			} else {
				if (value instanceof DE_C_BRAND_EXTTIME) {
					this.setCBrandExttime((DE_C_BRAND_EXTTIME) value);
				}
				else if(value instanceof java.util.Date){
					this.setCBrandExttime(new DE_C_BRAND_EXTTIME((java.util.Date)value));
				}
			    else {
					this.setCBrandExttime(new DE_C_BRAND_EXTTIME(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("webshzt")){
			value = dataMap.get("webshzt");
			
			if (value == null) {
				this.setWebshzt(null);
			} else {
				if (value instanceof DE_WEBSHZT) {
					this.setWebshzt((DE_WEBSHZT) value);
				}
			    else {
					this.setWebshzt(new DE_WEBSHZT(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("webshsj")){
			value = dataMap.get("webshsj");
			
			if (value == null) {
				this.setWebshsj(null);
			} else {
				if (value instanceof DE_WEBSHSJ) {
					this.setWebshsj((DE_WEBSHSJ) value);
				}
				else if(value instanceof java.util.Date){
					this.setWebshsj(new DE_WEBSHSJ((java.util.Date)value));
				}
			    else {
					this.setWebshsj(new DE_WEBSHSJ(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("appAndroidXzcs")){
			value = dataMap.get("appAndroidXzcs");
			
			if (value == null) {
				this.setAppAndroidXzcs(null);
			} else {
				if (value instanceof DE_APP_ANDROID_XZCS) {
					this.setAppAndroidXzcs((DE_APP_ANDROID_XZCS) value);
				}
			    else {
					this.setAppAndroidXzcs(new DE_APP_ANDROID_XZCS(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("appIosXzcs")){
			value = dataMap.get("appIosXzcs");
			
			if (value == null) {
				this.setAppIosXzcs(null);
			} else {
				if (value instanceof DE_APP_IOS_XZCS) {
					this.setAppIosXzcs((DE_APP_IOS_XZCS) value);
				}
			    else {
					this.setAppIosXzcs(new DE_APP_IOS_XZCS(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceCategory")){
			value = dataMap.get("invoiceCategory");
			
			if (value == null) {
				this.setInvoiceCategory(null);
			} else {
				if (value instanceof DE_INVOICE_CATEGORY) {
					this.setInvoiceCategory((DE_INVOICE_CATEGORY) value);
				}
			    else {
					this.setInvoiceCategory(new DE_INVOICE_CATEGORY(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceTaitoulx")){
			value = dataMap.get("invoiceTaitoulx");
			
			if (value == null) {
				this.setInvoiceTaitoulx(null);
			} else {
				if (value instanceof DE_INVOICE_TAITOULX) {
					this.setInvoiceTaitoulx((DE_INVOICE_TAITOULX) value);
				}
			    else {
					this.setInvoiceTaitoulx(new DE_INVOICE_TAITOULX(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceTaitou")){
			value = dataMap.get("invoiceTaitou");
			
			if (value == null) {
				this.setInvoiceTaitou(null);
			} else {
				if (value instanceof DE_INVOICE_TAITOU) {
					this.setInvoiceTaitou((DE_INVOICE_TAITOU) value);
				}
			    else {
					this.setInvoiceTaitou(new DE_INVOICE_TAITOU(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceContent")){
			value = dataMap.get("invoiceContent");
			
			if (value == null) {
				this.setInvoiceContent(null);
			} else {
				if (value instanceof DE_INVOICE_CONTENT) {
					this.setInvoiceContent((DE_INVOICE_CONTENT) value);
				}
			    else {
					this.setInvoiceContent(new DE_INVOICE_CONTENT(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceSprxm")){
			value = dataMap.get("invoiceSprxm");
			
			if (value == null) {
				this.setInvoiceSprxm(null);
			} else {
				if (value instanceof DE_INVOICE_SPRXM) {
					this.setInvoiceSprxm((DE_INVOICE_SPRXM) value);
				}
			    else {
					this.setInvoiceSprxm(new DE_INVOICE_SPRXM(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceSprlxdh")){
			value = dataMap.get("invoiceSprlxdh");
			
			if (value == null) {
				this.setInvoiceSprlxdh(null);
			} else {
				if (value instanceof DE_INVOICE_SPRLXDH) {
					this.setInvoiceSprlxdh((DE_INVOICE_SPRLXDH) value);
				}
			    else {
					this.setInvoiceSprlxdh(new DE_INVOICE_SPRLXDH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceSprdz")){
			value = dataMap.get("invoiceSprdz");
			
			if (value == null) {
				this.setInvoiceSprdz(null);
			} else {
				if (value instanceof DE_INVOICE_SPRDZ) {
					this.setInvoiceSprdz((DE_INVOICE_SPRDZ) value);
				}
			    else {
					this.setInvoiceSprdz(new DE_INVOICE_SPRDZ(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("invoiceSpremail")){
			value = dataMap.get("invoiceSpremail");
			
			if (value == null) {
				this.setInvoiceSpremail(null);
			} else {
				if (value instanceof DE_INVOICE_SPREMAIL) {
					this.setInvoiceSpremail((DE_INVOICE_SPREMAIL) value);
				}
			    else {
					this.setInvoiceSpremail(new DE_INVOICE_SPREMAIL(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandXtbpath")){
			value = dataMap.get("cBrandXtbpath");
			
			if (value == null) {
				this.setCBrandXtbpath(null);
			} else {
				if (value instanceof DE_C_BRAND_XTBPATH) {
					this.setCBrandXtbpath((DE_C_BRAND_XTBPATH) value);
				}
			    else {
					this.setCBrandXtbpath(new DE_C_BRAND_XTBPATH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandFilenewpath")){
			value = dataMap.get("cBrandFilenewpath");
			
			if (value == null) {
				this.setCBrandFilenewpath(null);
			} else {
				if (value instanceof DE_C_BRAND_FILENEWPATH) {
					this.setCBrandFilenewpath((DE_C_BRAND_FILENEWPATH) value);
				}
			    else {
					this.setCBrandFilenewpath(new DE_C_BRAND_FILENEWPATH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandFiledomain")){
			value = dataMap.get("cBrandFiledomain");
			
			if (value == null) {
				this.setCBrandFiledomain(null);
			} else {
				if (value instanceof DE_C_BRAND_FILEDOMAIN) {
					this.setCBrandFiledomain((DE_C_BRAND_FILEDOMAIN) value);
				}
			    else {
					this.setCBrandFiledomain(new DE_C_BRAND_FILEDOMAIN(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("cBrandFileoldpath")){
			value = dataMap.get("cBrandFileoldpath");
			
			if (value == null) {
				this.setCBrandFileoldpath(null);
			} else {
				if (value instanceof DE_C_BRAND_FILEOLDPATH) {
					this.setCBrandFileoldpath((DE_C_BRAND_FILEOLDPATH) value);
				}
			    else {
					this.setCBrandFileoldpath(new DE_C_BRAND_FILEOLDPATH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("appAndroid")){
			value = dataMap.get("appAndroid");
			
			if (value == null) {
				this.setAppAndroid(null);
			} else {
				if (value instanceof DE_APP_ANDROID) {
					this.setAppAndroid((DE_APP_ANDROID) value);
				}
			    else {
					this.setAppAndroid(new DE_APP_ANDROID(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("appIos")){
			value = dataMap.get("appIos");
			
			if (value == null) {
				this.setAppIos(null);
			} else {
				if (value instanceof DE_APP_IOS) {
					this.setAppIos((DE_APP_IOS) value);
				}
			    else {
					this.setAppIos(new DE_APP_IOS(value.toString()));
				}
			}
		}

		return this;
	}
	
	@Override
	public Map<String,Object> toMap() {
		Map<String,Object> dataMap = new HashMap<String,Object>();

		dataMap.put("cBrandId", cBrandId);
		dataMap.put("categoryId", categoryId);
		dataMap.put("webusername", webusername);
		dataMap.put("cBrandTitle", cBrandTitle);
		dataMap.put("cBrandFbt", cBrandFbt);
		dataMap.put("cBrandClicknumber", cBrandClicknumber);
		dataMap.put("cBrandTotalwealth", cBrandTotalwealth);
		dataMap.put("cBrandWealth", cBrandWealth);
		dataMap.put("cBrandWealthSjxz", cBrandWealthSjxz);
		dataMap.put("cBrandWealthGqsj", cBrandWealthGqsj);
		dataMap.put("cBrandSfnew", cBrandSfnew);
		dataMap.put("cBrandNewnum", cBrandNewnum);
		dataMap.put("cBrandSftop", cBrandSftop);
		dataMap.put("cBrandOpptime", cBrandOpptime);
		dataMap.put("cBrandExttime", cBrandExttime);
		dataMap.put("webshzt", webshzt);
		dataMap.put("webshsj", webshsj);
		dataMap.put("appAndroidXzcs", appAndroidXzcs);
		dataMap.put("appIosXzcs", appIosXzcs);
		dataMap.put("invoiceCategory", invoiceCategory);
		dataMap.put("invoiceTaitoulx", invoiceTaitoulx);
		dataMap.put("invoiceTaitou", invoiceTaitou);
		dataMap.put("invoiceContent", invoiceContent);
		dataMap.put("invoiceSprxm", invoiceSprxm);
		dataMap.put("invoiceSprlxdh", invoiceSprlxdh);
		dataMap.put("invoiceSprdz", invoiceSprdz);
		dataMap.put("invoiceSpremail", invoiceSpremail);
		dataMap.put("cBrandXtbpath", cBrandXtbpath);
		dataMap.put("cBrandFilenewpath", cBrandFilenewpath);
		dataMap.put("cBrandFiledomain", cBrandFiledomain);
		dataMap.put("cBrandFileoldpath", cBrandFileoldpath);
		dataMap.put("appAndroid", appAndroid);
		dataMap.put("appIos", appIos);
		
		return dataMap;
	}
	
	@Override
	public Map<String,Object> toMapWithDEValue() {
		Map<String,Object> dataMap = new HashMap<String,Object>();

		dataMap.put("cBrandId", (cBrandId==null?null:cBrandId.value));
		dataMap.put("categoryId", (categoryId==null?null:categoryId.value));
		dataMap.put("webusername", (webusername==null?null:webusername.value));
		dataMap.put("cBrandTitle", (cBrandTitle==null?null:cBrandTitle.value));
		dataMap.put("cBrandFbt", (cBrandFbt==null?null:cBrandFbt.value));
		dataMap.put("cBrandClicknumber", (cBrandClicknumber==null?null:cBrandClicknumber.value));
		dataMap.put("cBrandTotalwealth", (cBrandTotalwealth==null?null:cBrandTotalwealth.value));
		dataMap.put("cBrandWealth", (cBrandWealth==null?null:cBrandWealth.value));
		dataMap.put("cBrandWealthSjxz", (cBrandWealthSjxz==null?null:cBrandWealthSjxz.value));
		dataMap.put("cBrandWealthGqsj", (cBrandWealthGqsj==null?null:cBrandWealthGqsj.value));
		dataMap.put("cBrandSfnew", (cBrandSfnew==null?null:cBrandSfnew.value));
		dataMap.put("cBrandNewnum", (cBrandNewnum==null?null:cBrandNewnum.value));
		dataMap.put("cBrandSftop", (cBrandSftop==null?null:cBrandSftop.value));
		dataMap.put("cBrandOpptime", (cBrandOpptime==null?null:cBrandOpptime.value));
		dataMap.put("cBrandExttime", (cBrandExttime==null?null:cBrandExttime.value));
		dataMap.put("webshzt", (webshzt==null?null:webshzt.value));
		dataMap.put("webshsj", (webshsj==null?null:webshsj.value));
		dataMap.put("appAndroidXzcs", (appAndroidXzcs==null?null:appAndroidXzcs.value));
		dataMap.put("appIosXzcs", (appIosXzcs==null?null:appIosXzcs.value));
		dataMap.put("invoiceCategory", (invoiceCategory==null?null:invoiceCategory.value));
		dataMap.put("invoiceTaitoulx", (invoiceTaitoulx==null?null:invoiceTaitoulx.value));
		dataMap.put("invoiceTaitou", (invoiceTaitou==null?null:invoiceTaitou.value));
		dataMap.put("invoiceContent", (invoiceContent==null?null:invoiceContent.value));
		dataMap.put("invoiceSprxm", (invoiceSprxm==null?null:invoiceSprxm.value));
		dataMap.put("invoiceSprlxdh", (invoiceSprlxdh==null?null:invoiceSprlxdh.value));
		dataMap.put("invoiceSprdz", (invoiceSprdz==null?null:invoiceSprdz.value));
		dataMap.put("invoiceSpremail", (invoiceSpremail==null?null:invoiceSpremail.value));
		dataMap.put("cBrandXtbpath", (cBrandXtbpath==null?null:cBrandXtbpath.value));
		dataMap.put("cBrandFilenewpath", (cBrandFilenewpath==null?null:cBrandFilenewpath.value));
		dataMap.put("cBrandFiledomain", (cBrandFiledomain==null?null:cBrandFiledomain.value));
		dataMap.put("cBrandFileoldpath", (cBrandFileoldpath==null?null:cBrandFileoldpath.value));
		dataMap.put("appAndroid", (appAndroid==null?null:appAndroid.value));
		dataMap.put("appIos", (appIos==null?null:appIos.value));
		
		return dataMap;
	}
	
	@Override
	public TCategoryShopPO newInstance() {
		return new TCategoryShopPO();
	}
	
	@Override
	public String getTableName(){
		return TABLE_NAME;
	}
	
	@Override
	public BaseDataElement<?>[] getPrimaryKey() {
		return new BaseDataElement<?>[]{cBrandId};
	}

	@Override
	public void checkNotNull(byte sqlType) throws SwordBaseCheckedException {
		StringBuilder errorMsg = new StringBuilder();
		// insert
		if (sqlType == 0) {
				//只校验不可为空但又没有默认值的字段
				if (cBrandId.value == null && !HAS_DEFAULT_VALUE.get(0)) {
					errorMsg.append("字段cBrandId不允许为空\n");
				}
				if (webusername.value == null && !HAS_DEFAULT_VALUE.get(2)) {
					errorMsg.append("字段webusername不允许为空\n");
				}

		}
		// update
		else if (sqlType == 1) {
		if (updateState.get(0) && cBrandId.value == null) {
			errorMsg.append("字段cBrandId不允许为空\n");
		}
		if (updateState.get(2) && webusername.value == null) {
			errorMsg.append("字段webusername不允许为空\n");
		}

		}
		
		if (errorMsg.length() > 0) {
			errorMsg.setLength(errorMsg.length() - 1);
			throw new SwordBaseCheckedException(errorMsg.toString());
		}
	}

	@Override
	public void updateLrrq(DateDE lrrq) {
	}

	@Override
	public void updateXgrq(DateDE xgrq) {
	}

	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		str.append("cBrandId:").append(cBrandId.value!=null?cBrandId:"").append(" ").append("categoryId:").append(categoryId.value!=null?categoryId:"").append(" ").append("webusername:").append(webusername.value!=null?webusername:"").append(" ").append("cBrandTitle:").append(cBrandTitle.value!=null?cBrandTitle:"").append(" ").append("cBrandFbt:").append(cBrandFbt.value!=null?cBrandFbt:"").append(" ").append("cBrandClicknumber:").append(cBrandClicknumber.value!=null?cBrandClicknumber:"").append(" ").append("cBrandTotalwealth:").append(cBrandTotalwealth.value!=null?cBrandTotalwealth:"").append(" ").append("cBrandWealth:").append(cBrandWealth.value!=null?cBrandWealth:"").append(" ").append("cBrandWealthSjxz:").append(cBrandWealthSjxz.value!=null?cBrandWealthSjxz:"").append(" ").append("cBrandWealthGqsj:").append(cBrandWealthGqsj.value!=null?cBrandWealthGqsj:"").append(" ").append("cBrandSfnew:").append(cBrandSfnew.value!=null?cBrandSfnew:"").append(" ").append("cBrandNewnum:").append(cBrandNewnum.value!=null?cBrandNewnum:"").append(" ").append("cBrandSftop:").append(cBrandSftop.value!=null?cBrandSftop:"").append(" ").append("cBrandOpptime:").append(cBrandOpptime.value!=null?cBrandOpptime:"").append(" ").append("cBrandExttime:").append(cBrandExttime.value!=null?cBrandExttime:"").append(" ").append("webshzt:").append(webshzt.value!=null?webshzt:"").append(" ").append("webshsj:").append(webshsj.value!=null?webshsj:"").append(" ").append("appAndroidXzcs:").append(appAndroidXzcs.value!=null?appAndroidXzcs:"").append(" ").append("appIosXzcs:").append(appIosXzcs.value!=null?appIosXzcs:"").append(" ").append("invoiceCategory:").append(invoiceCategory.value!=null?invoiceCategory:"").append(" ").append("invoiceTaitoulx:").append(invoiceTaitoulx.value!=null?invoiceTaitoulx:"").append(" ").append("invoiceTaitou:").append(invoiceTaitou.value!=null?invoiceTaitou:"").append(" ").append("invoiceContent:").append(invoiceContent.value!=null?invoiceContent:"").append(" ").append("invoiceSprxm:").append(invoiceSprxm.value!=null?invoiceSprxm:"").append(" ").append("invoiceSprlxdh:").append(invoiceSprlxdh.value!=null?invoiceSprlxdh:"").append(" ").append("invoiceSprdz:").append(invoiceSprdz.value!=null?invoiceSprdz:"").append(" ").append("invoiceSpremail:").append(invoiceSpremail.value!=null?invoiceSpremail:"").append(" ").append("cBrandXtbpath:").append(cBrandXtbpath.value!=null?cBrandXtbpath:"").append(" ").append("cBrandFilenewpath:").append(cBrandFilenewpath.value!=null?cBrandFilenewpath:"").append(" ").append("cBrandFiledomain:").append(cBrandFiledomain.value!=null?cBrandFiledomain:"").append(" ").append("cBrandFileoldpath:").append(cBrandFileoldpath.value!=null?cBrandFileoldpath:"").append(" ").append("appAndroid:").append(appAndroid.value!=null?appAndroid:"").append(" ").append("appIos:").append(appIos.value!=null?appIos:"").append(" ");
		return str.toString();
	}
	
}
